<template>
    <div class="card-title">
        <div class="main-con">
            <img :src="imgSrc" alt="" class="title-img">
            <div class="text">
                <div v-html="text"></div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    mixins:[],
    props: {

        imgSrc:{
            type:String,
            default:""
        },
        text:{
            type:String,
            default:""
        },
    },
    data: () => ({

    }),
    watch: {

    },
    computed: {

    },
    methods: {

    },
    mounted () {
 
    },
}
</script>

<style lang="scss" scoped>
@import '@css/var.scss'; 
    .card-title{
        .main-con{
            animation: main-con  0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            height: 73px;
            background-color: #dbe6fd;
            position: relative;
            transition: all 0.4s;
            .text{
                height: 100%;
                padding-left: 52px;
                display: flex;
                align-items: center;
                line-height: 1.8em;
            }

            .title-img{
                position: absolute;
                top: -12px;
                left: 12px;
            }
        }
    }
    @keyframes main-con {
        0% {
            transform: translateY(-50px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

</style>